package com.qf.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface UserService {

    public void drawCode(HttpServletRequest request, HttpServletResponse response);

    public void login(HttpServletRequest request, HttpServletResponse response) throws IOException;

    public void rememberMe(HttpServletRequest request,HttpServletResponse response,String username,String name,String role,String photo);
    public void rememberAdmin(HttpServletRequest request,HttpServletResponse response, String username, String role);

    public void loginOut(HttpServletRequest request, HttpServletResponse response);

    public void resetPassword(HttpServletRequest request, HttpServletResponse response) throws IOException;

}
